package com.oss.service;

import org.oss.client.dto.BaseRequest;
import org.oss.client.dto.OssSecurityRequest;
import org.oss.client.dto.OssSecurityResponse;
import org.oss.client.dto.UrlRequest;
import org.oss.client.dto.UrlResponse;

import com.oss.vo.OssFileInfo;
import com.oss.vo.SysUser;
/**
 * 
* Title: IStorageService
* Description: 文件存储的相关操作,上传下载
* Company: sungoin 
* @author   wjt
* @date       2016-2-5
 */
public interface IStorageService {
	/**
	 * 
	* Title: saveFileInfo
	* Description: 保存文件信息
	* @author   wjt
	* @date       2016-2-5
	* @param req
	* @param user
	* @return
	 */
	public String saveFileInfo(OssSecurityRequest req,SysUser user);
	/**
	 * 
	* Title: genFileUrl
	* Description: 获取文件下载url
	* @author   wjt
	* @date       2016-2-5
	* @param req
	* @param res
	* @param file
	* @return
	 */
	public UrlResponse genFileUrl(UrlRequest req,OssSecurityResponse res,OssFileInfo file);
	/**
	 * 
	* Title: getFileById
	* Description: 根据ID获取文件信息
	* @author   wjt
	* @date       2016-2-5
	* @param reqObj
	* @return
	 */
	public OssFileInfo getFileById(UrlRequest reqObj);
}
